package com.wocai.jrt.orgadmin.asset.dao;

import java.util.List;

import com.vteba.tx.jdbc.mybatis.annotation.DaoMapper;
import com.vteba.tx.jdbc.mybatis.spi.BaseDao;
import com.wocai.jrt.orgadmin.asset.bean.AssetAllocationBean;
import com.wocai.jrt.orgadmin.asset.bean.AssetAllocationHistoryResBean;
import com.wocai.jrt.orgadmin.asset.bean.AssetAllocationReqBean;
import com.wocai.jrt.orgadmin.asset.bean.AssetAllocationResBean;
import com.wocai.jrt.orgadmin.asset.model.AssetAllocation;

/**
 * 表asset_allocation的MyBatis Dao Mapper。
 * 由代码工具自动生成，可以新增方法，但是不要修改自动生成的方法。
 * @date 2016-03-17 17:47:56
 */
@DaoMapper
public interface AssetAllocationDao extends BaseDao<AssetAllocation, AssetAllocationBean, String> {

	int countAssetAllocationResBeanList(AssetAllocationReqBean model);

	List<AssetAllocationResBean> getAssetAllocationResBeanList(
			AssetAllocationReqBean model);

	Double sumAllocationDetailAmout(String id);

	int countAssetAllocationHistory(String productId);

	List<AssetAllocationHistoryResBean> getAssetAllocationHistory(String productId);

	List<AssetAllocationBean> queryAssetAllocationList(AssetAllocationReqBean model);

	int countAssetAllocationBy(AssetAllocationReqBean model);
}